home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{B190576C-254A-11D2-B61E-C80424DEEF17}#51.0#0"; "LCocx.ocx"
- Begin VB.Form frmEncDec
- BorderStyle = 1 'Fixed Single
- Caption = "Encrypt/Decrypt"
- ClientHeight = 2496
- ClientLeft = 36
- ClientTop = 324
- ClientWidth = 3216
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2496
- ScaleWidth = 3216
- StartUpPosition = 3 'Windows Default
- Begin LCocx98.LCocx LCocx1
- Left = 1440
- Top = 1920
- _ExtentX = 656
- _ExtentY = 656
- End
- Begin VB.TextBox Text3
- Height = 372
- Left = 240
- TabIndex = 4
- Text = "Text3"
- Top = 1200
- Width = 2532
- End
- Begin VB.CommandButton cmddec
- Caption = "Dec"
- Height = 372
- Left = 1800
- TabIndex = 3
- Top = 1680
- Width = 972
- End
- Begin VB.CommandButton cmdenc
- Caption = "Enc"
- Height = 372
- Left = 240
- TabIndex = 2
- Top = 1680
- Width = 972
- End
- Begin VB.TextBox Text2
- Height = 372
- Left = 240
- TabIndex = 1
- Text = "Text2"
- Top = 720
- Width = 2532
- End
- Begin VB.TextBox Text1
- Height = 372
- Left = 240
- TabIndex = 0
- Text = "Text1"
- Top = 240
- Width = 2532
- End
- Attribute VB_Name = "frmEncDec"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmddec_Click()
- 'Decrypt a string and show it in a text box
- Text3 = LCocx1.Decrypt(Text2, "")
- 'Text3 = LCocx1.Decrypt(, "Encryption")
- 'Decrypt from the registry
- End Sub
- Private Sub cmdenc_Click()
- 'Encrypt without saving to the registry
- Text2 = LCocx1.Encrypt(Text1, "")
- 'Text2 = LCocx1.Encrypt(Text1, "Encryption")
- 'Encrypt saving to the registry "Encryption" is the name
- 'of the Value in which the encrypted string will be stored
- End Sub
-